package com.eastelsoft.smartiot.bssserver.dao;

import com.eastelsoft.smartiot.bssserver.domain.TCmOrder;
import com.eastelsoft.smartiot.bssserver.domain.TCmOrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TCmOrderMapper {
    int deleteByPrimaryKey(String orderId);

    int insert(TCmOrder record);

    TCmOrder selectByPrimaryKey(String orderId);

    List<TCmOrder> selectAll();
    List<TCmOrder>  selectByCusId(String cusId);
    int updateByPrimaryKey(TCmOrder record);
  //  @Param("userName") String name, int @Param("deptId") deptId);
    List<TCmOrder> selectBycusIdAndOrderStatus(@Param("orderItemId") String orderItemId,@Param("cusId")String cusId ,@Param("orderStatus") int orderStatus);
}